const app = getApp()
import {
    util,
    Toast,
    commonMixin
} from "../../utils/util.js";

Page({
    behaviors: [commonMixin],
    data: {
        appData:'',
    },
    onLoad(options) {

    },
    onLoad(options) {
        // this.getData();
    },
    //获取隐私协议富文本内容
    getData() {
        wx.showLoading({
            title: '加载中...',
            mask: true
        });
        let postData = {}

        util.http.get("applet/center/privacy", postData).then((res) => {
            if (res.data.code == 0) {
                this.setData({
                    appData: res.data.data
                })
            } else {
                Toast(res.data.message);
            }
            wx.hideLoading();
        }).catch((err) => {
            wx.hideLoading();
            Toast('网络异常！刷新后重试！');
            
        })
    },
    onShareAppMessage() {
      
    },
})